package com.wfk.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 用户收货地址表
 * </p>
 *
 * @since 2019-01-07
 */
@TableName("t_received_addr")
public class ReceivedAddr implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	private Integer cid;

	/**
	 * 收货人名称
	 */
	private String name;

	/**
	 * 收货人联系电话
	 */
	private String phone;

	/**
	 * 省id
	 */
	private Integer proid;

	/**
	 * 市id
	 */
	private Integer cityid;

	/**
	 * 区域id
	 */
	private Integer areaid;

	/**
	 * 详细地址
	 */
	private String address;

	/**
	 * 是否默认 -1不是默认 0是默认
	 */
	private Integer isdefault;

	/**
	 * 创建时间
	 */
	private Date createtime;

	private String location;
	
	public void setLocation(String location) {
		this.location = location;
	}
	public String getLocation() {
		return location;
	}
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getProid() {
		return proid;
	}

	public void setProid(Integer proid) {
		this.proid = proid;
	}

	public Integer getCityid() {
		return cityid;
	}

	public void setCityid(Integer cityid) {
		this.cityid = cityid;
	}

	public Integer getAreaid() {
		return areaid;
	}

	public void setAreaid(Integer areaid) {
		this.areaid = areaid;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getIsdefault() {
		return isdefault;
	}

	public void setIsdefault(Integer isdefault) {
		this.isdefault = isdefault;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Override
	public String toString() {
		return "ReceivedAddr{" +
				"id=" + id +
				", cid=" + cid +
				", name=" + name +
				", phone=" + phone +
				", proid=" + proid +
				", cityid=" + cityid +
				", areaid=" + areaid +
				", address=" + address +
				", isdefault=" + isdefault +
				", createtime=" + createtime +
				"}";
	}
}
